using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTO;
using BUS;
using DAL;
using Utility;
using System.IO;

public partial class PH_DN_sanphamct : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {


        int iD = int.Parse(Request.QueryString["id"].ToString());
        tbsanphamDTO sanpham = tbsanphamBUS.GetByID(iD);
        lb_ten.Text = sanpham.Tensp.ToString();
        lb_dacdiem.Text = sanpham.Dacdiem.ToString();
        lb_giaban.Text = sanpham.Giaban.ToString();
        //lb_soluong.Text = sanpham.Soluong.ToString();
        //HighslideImage1.ImageUrl = "~/Admin/hinhanh/" + sanpham.Hinhanh.ToString();
        //HighslideImage1.FullImageURL = "~/Admin/hinhanh/" + sanpham.Hinhanh.ToString();
        lb_maloai.Text = sanpham.Maloaisp.ToString();
        //lb_ngaynhap.Text = sanpham.Ngaynhapve.ToString();
        //lb_spdb.Text = sanpham.Spdacbiet.ToString();
        lb_madn.Text = sanpham.Madn.ToString();


    }
}
